.thumbs {
  display: flex;
}

.thumbs>div {
  width: 100%;
}

.thumbs .my-gallery {
  display: flex;
  flex: wrap;
}

.thumbs .my-gallery figure {
  margin: 10px;
  box-shadow: 0 0 10px #999;
}

.thumbs .my-gallery figure img {
  width: 100%;
  vertical-align: middle;
}